
function  Person(obession,name,height){
            this.obession=obession;
            this.name=name;
            this.height=height;
            this.say=function(){
                console.log(name);
            }
};
Person.prototype={
    constructor:Person,
    sayObession:function(){
        console.log(this.obession);
    }
}
function Student(obession,name,height,qq){
    Person.call(this,obession,name,height,qq);
    this.qq=qq
}
  var kjp=new Student('学生',"康济鹏",180,1127270788)
  console.log(kjp);
console.log(kjp.say);

  //原型链继承
 Student.prototype=new Person();
 Student.prototype.constructor=Student;
 Student.prototype.sayObession=function(){
     console.log(this.obession);
 };
 var kjp=new Student('学生',"康济鹏",180,1127270788)
 kjp.sayObession()